package com.x.crm.rpc;


import com.x.crm.model.*;

import java.util.List;

public interface CrmSysParamRpcService {

	/**
	 * 查询渠道列表
	 * @param channel 渠道
	 * @return
	 */
	List<Channel> selectChannelListAll(Channel channel);

	int selectChannelNum(Channel channel);

	List<Channel> selectChannelList(Channel channel);

	int selectChannelListNum(Channel channel);

	String insertChannel(Channel channel);

	int updateChannel(Channel channel);

	void deleteChannel(Channel channel);

	List<CustomerLevel> selectCustomerLevelList(CustomerLevel customerLevel);

	int selectCustomerLevelListNum(CustomerLevel customerLevel);

	List<CustomerLevel> selectCustomerLevel(CustomerLevel customerLevel);

	int selectCustomerLevelNum(CustomerLevel customerLevel);

	String insertCustomerLevel(CustomerLevel customerLevel);

	int updateCustomerLevel(CustomerLevel customerLevel);

	void deleteCustomerLevel(CustomerLevel customerLevel);

	List<Insurance> selectInsuranceList(Insurance insurance);

	int selectInsuranceNum(Insurance insurance);

	String insertInsurance(Insurance insurance);

	int updateInsurance(Insurance insurance);

	void deleteInsurance(Insurance insurance);

	List<Mortgage> selectMortgageList(Mortgage mortgage);

	int selectMortgageNum(Mortgage mortgage);

	String insertMortgage(Mortgage mortgage);

	int updateMortgage(Mortgage mortgage);

	void deleteMortgage(Mortgage mortgage);


	List<Warranty> selectWarrantyList(Warranty warranty);

	int selectWarrantyNum(Warranty warranty);

	String insertWarranty(Warranty warranty);

	int updateWarranty(Warranty warranty);

	void deleteWarranty(Warranty warranty);


  //合作机构

	List<Cooperation> selectCooperationList(Cooperation cooperation);

	int selectCooperationNum(Cooperation cooperation);

	Cooperation insertCooperation(Cooperation cooperation);

	int updateCooperation(Cooperation cooperation);



	//合作机构类型配置

	List<Coopertype> selectCoopertypeList(Coopertype coopertype);

	int selectCoopertypeNum(Coopertype coopertype);

	Coopertype insertCoopertype(Coopertype coopertype);

	int updateCoopertype(Coopertype coopertype);


	//意向等级配置

	List<IntentionLevel> selectIntentionLevelList(IntentionLevel intentionLevel);

	int selectIntentionLevelNum(IntentionLevel intentionLevel);

	IntentionLevel insertIntentionLevel(IntentionLevel intentionLevel);

	int updateIntentionLevel(IntentionLevel intentionLevel);



}
